package org.tgcloud.group.web.exception;

/**
 * @Author SGY
 * @Date 2020/10/15 17:01
 * @Description
 **/
public class CommonException extends RuntimeException {

    private String message;


    /**
     * Creates a new CommonException.
     */
    public CommonException() {
        super();
    }

    /**
     * Constructs a new CommonException.
     *
     * @param message the reason for the exception
     */
    public CommonException(String message) {
        super(message);
        this.message = message;
    }

    /**
     * Constructs a new CommonException.
     *
     * @param cause the underlying Throwable that caused this exception to be thrown.
     */
    public CommonException(Throwable cause) {
        super(cause);
    }

    /**
     * Constructs a new CommonException.
     *
     * @param message the reason for the exception
     * @param cause   the underlying Throwable that caused this exception to be thrown.
     */
    public CommonException(String message, Throwable cause) {
        super(message, cause);
    }

    @Override
    public String getMessage() {
        return message;
    }
}
